<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="./Public/home/css/index.css"/>
		<link rel="stylesheet" type="text/css" href="./Public/home/css/list.css"/>
		<script src="./Public/home/js/jquery-1.7.2.min.js"></script>
		<script src="./Public/home/js/style.js"></script>
	</head>
	<body>
	<!--header-->
	<div id="header">
		<div class="header"> 
			<div class="headerTop">
				<div class="headerLeft">
					<h1>
						<a href="<?php echo U('Index/index')?>"><img src="./Public/home/images/logo1_cc09ff8.png"/></a>
					</h1>
				</div>
				<div class="headerRight">
					<ul class="header-car">
						<li class="shop-car">
							<a href="<?php echo U('Cart/index')?>">购物车(<?php if(isset($_SESSION['cart'])){?>
                 <?php echo $_SESSION['cart']['total_rows']?> <?php }else{?> 0
               <?php }?>)</a>
						</li>
					</ul>
					<!--搜索-->
					<div class="select">
						<form action="<?php echo U('List/index')?>" method="post">
							<input type="text" name="select" class="select-box" />
							<input type="submit" value="So索" class="select-btn"/>
						</form>
					</div>
					<ul class="navbar">
						<li><a href="<?php echo U('Index/index')?>" class="hover">首页</a></li>
						<?php foreach ($cateData as $c){?>
						<li><a href="<?php echo U('List/index',['cid'=>$c['cid']])?>"><?php echo $c['cname']?></a></li>
						<?php }?>
					</ul>
				</div>
			</div>
			<div class="header-bottom">
				<div class="header-bottom-box">
					<div class="bottom-left-hover">
						<div class="header-bottom-left">全部商品分类</div>
						<ul class="nav-list">
						<?php foreach ($nav as $v){?>
						<li>
							<a href="<?php echo U('List/index',['cid'=>$v['cid']])?>" class="nav-list-title"><?php echo $v['cname']?></a>
							<?php foreach ($v['value'] as $value){?>
							<a href="<?php echo U('List/index',['cid'=>$value['cid']])?>" "><?php echo $value['cname']?></a>
							<?php }?>
						</li>
						<?php }?>
					</ul>
					</div>
					<ul class="header-bottom-right">
						<li class="li-nav">
							<span style="padiving-left: 15px;">网站导航</span>
							<div class="all-list">
								<?php foreach ($navData as $v){?>
								<div><a href="<?php echo U('List/index',['cid'=>$v['cid']])?>"><?php echo $v['cname']?></a></div>
								<?php }?>
							</div>
						</li>
						<?php if(isset($_SESSION['nickuser'])){?>
                
						<li>
							<a href="<?php echo U('Presonal/index')?>"><?php echo $_SESSION['nickuser']['nickname']?></a>
							<a href="<?php echo U('Member/del')?>">退出登录</a>
							
						</li>
						<?php }else{?>
						<li>
							<a href="<?php echo U('Member/index')?>">登录</a>
							<a href="<?php echo U('Member/reg')?>">注册</a>
						</li>
						
               <?php }?>
						<li class="order"><a href="<?php echo U('Presonal/order')?>">我的订单</a></li>
					</ul>
				</div>
			</div>
		</div>
	</div>
	<!--/header-->
	<!--conten-->
	<div id="content">
		<!--nav-->
		<div id="nav">
			<div class="nav-top">
				<a ><img src="./Public/home/images/1.jpg"/></a>
				<a ><img src="./Public/home/images/2.jpg"/></a>
				<a ><img src="./Public/home/images/3.jpg"/></a>
				<a ><img src="./Public/home/images/4.jpg"/></a>
				<ul id="ul">
					<li></li>
					<li></li>
					<li></li>
					<li></li>
				</ul>
				<div class="btn">
					<div class="btn-left">&lt;</div>
					<div class="btn-right">&gt;</div>
				</div>
			</div>
			<div class="nav-bottom">
				<?php foreach ($recommendGoods as $v){?>
				<a href="<?php echo U('Content/index',['gid'=>$v['gid']])?>"><img src="<?php echo $v['pic']?>" alt="" /></a>
				<?php }?>
			</div>
		</div>
		<!--/nav-->
		<!--new-->
		<h4 class="title">新品推荐</h4>
		<div class="hot-box">
			<?php foreach ($newGoodsData as $n){?>
			<div class="list-box">
				<a href="<?php echo U('Content/index',['gid'=>$n['gid']])?>">
					<img src="<?php echo $n['pic']?>" alt="" />
					<p><?php echo $n['gname']?></p>
					<p><?php echo $n['shopprice']?>元</p>
				</a>
			</div>
			<?php }?>
		</div>
		<!--/new-->
		<!--hot-->
		<h4 class="title">畅销商品</h4>
		<div class="hot-box">
			<?php foreach ($goodsData as $g){?>
			<div class="list-box">
				<a href="<?php echo U('Content/index',['gid'=>$g['gid']])?>">
					<img src="<?php echo $g['pic']?>" alt="" />
					<p><?php echo $g['gname']?></p>
					<p><?php echo $g['shopprice']?>元</p>
				</a>
			</div>
			<?php }?>	
		</div>
		<!--/hot-->
		<!--parts-->
		<h4 class="title" style="border: none;">精美商品</h4>
		<div class="parts-box">
			<div class="parts-left">
				<div class="left-top-left">
					<a href="<?php echo U('Content/index',['gid'=>$vrData['gid']])?>">
						<div class="massage">
							<h3><?php echo $vrData['gname']?></h3>
							<p class="massage-name"><?php echo $vrData['gname']?></p>
							<p class="massage-money"><?php echo $vrData['shopprice']?>元</p>
						</div>
						<div class="massage-img">
							<img src="<?php echo $vrData['pic']?>" alt="" />
						</div>
					</a>
				</div>
				<?php foreach ($otherGoodsData as $o){?>
				<div class="left-other">
					<a href="<?php echo U('Content/index',['gid'=>$o['gid']])?>">
						<div class="img">
							<img src="<?php echo $o['pic']?>" alt="" />
						</div>
						<p class="other-name"><?php echo $o['gname']?></p>
						<p class="other-money"><?php echo $o['shopprice']?>元</p>
					</a>
				</div>
				<?php }?>
			</div>
			<div class="parts-right">
				<p class="hot-parts"></p>
				<ul>
					<?php foreach ($oneGoodsData as $k=>$v){?>
					<li>
						<a href="<?php echo U('Content/index',['gid'=>$v['gid']])?>">
							<img src="<?php echo $v['pic']?>" alt="" />
							<p class="sp"><?php echo $k+1?></p>
							<span><?php echo $v['gname']?><br />
								<em><i><?php echo $v['shopprice']?></i>元</em>
							</span>
						</a>
					</li>
					<?php }?>
				</ul>
			</div>
		</div>
		<!--/parts-->
	</div>
	<!--/conten-->
	<!--footer-->
	<div id="footer">
	<div class="footer">
		<p>法律声明|备案证号：京ICP备11014623号-6    © 版权2012-2020 奇酷互联网络科技(深圳)有限公司</p>
	</div>
</div>
	<!--/footer-->
	</body>
</html>
